﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Web_Admin_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       // string log = "";
        Bestlife.ERP.Entities.E_Admin_login adlg = new Bestlife.ERP.Entities.E_Admin_login();
        adlg.User_Name1 = TextBox1.Text;
        adlg.Password1 = TextBox2.Text;
       // Bestlife.ERP.BusinessRules.B_Admin_User_Login(adlg);
        Boolean b=Bestlife.ERP.BusinessRules.B_Admin_User_Login.user(adlg);
        //ASPXToPDF1.RenderAsPDF();
        if (b)
        {
            Response.Redirect("CashOrCredit.aspx");
        }
        else
        {
            Response.Redirect("404.aspx");
        }
    }


    
}